//就诊信息模型
const db = require('./index');
const Schema = db.Schema;
const MedicalinformationModel = new Schema({
    id: { type: String },//患者ID
    doctorid: { type: String },//医生id
    doctorname: { type: String },//医生姓名
    department: { type: String },//科室
    clinicname: { type: String },//门店
    seedoctortime: { type: String },//发病日期
    action: { type: String },//主诉
    nowmedical: { type: String },//现病史
    historymedical: { type: String },//既往史
    irritability: { type: String },//是否有过敏史
    irritabilityDetails: { type: {}, default: null },//过敏史
    personage: { type: String },//个人史
    family: { type: String },//家族史
    tentative: { type: String },//初步诊断
    treatmentoptions: { type: String },//治疗意见
    savetime: { type: String, default: null },//保存时间
    
    signmes: { type: {}, default: null },//体征信息
    //pulse:Number  脉搏
    //breathe:Number    呼吸
    //bloodpressure:Number  血压
});
const Medicalinformation = db.model('Medicalinfor', MedicalinformationModel);
module.exports = Medicalinformation;